import request from '../utils/request'

// 产地列表
export function getProducerList(data) {
  return request({
    method: 'post',
    url: '/api/producer/PageListAsync',
    data,
  })
}

//添加产地
export function addPlace(data) {
  return request({
    method: 'post',
    url: '/api/producer/AddAsync',
    data,
  })
}

//编辑产地
export function editPlace(data) {
  return request({
    method: 'put',
    url: '/api/producer/UpdateAsync',
    data,
  })
}

//删除产地
export function delPlace(params) {
  return request({
    method: 'delete',
    url: '/api/producer/DeleteAsync',
    params,
  })
}
